<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/8/13
  Time: 18:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
    tr {
        line-height: 26px
    }

    .easyui-linkbutton {
        width: 40px;
        height: 20px;
    }

    .easyui-textbox {
        width: 200px;
        height: 40px;
    }
</style>
<div style="padding-top: 16px;padding-bottom: 20px">
    <form>

        <input type="hidden" name="id" value="${requestScope.dictionary.id}">

        <table style="padding-left: 20px" align="center">
            <tr>
                <td>名称:</td>
                <td><input name="name" type="text" class="easyui-textbox" data-options="required:true"
                           value="${requestScope.dictionary.name}"/></td>
            </tr>

            <tr>
                <td>值:</td>
                <td><input name="value" type="text" class="easyui-textbox" data-options="required:true"
                           value="${requestScope.dictionary.value}"/></td>
            </tr>


            <tr>
                <td>类型:</td>
                <td><input name="type" type="text" class="easyui-textbox" data-options="required:true"
                           value="${requestScope.dictionary.type}"></td>
            </tr>


            <tr>
                <td>默认值:</td>
                <td>
                    <select name="defaultValue" class="easyui-combobox">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </td>
            </tr>


            <tr>
                <td>简介</td>
                <td><input name="description" class="easyui-textbox" data-options="multiline:true"
                           style="height:100px" value="${requestScope.dictionary.description}"></td>
            </tr>
        </table>


    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="dictionary.modifySubmit(this)">保 存</a>
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="util.formClear(this);">清 空</a>
    </div>
</div>

